<?php $form=$this->beginWidget('bootstrap.widgets.TbActiveForm',array(
	'id'=>'user-form',
	'enableAjaxValidation'=>true,
)); ?>

<p class="help-block">Fields with <span class="required">*</span> are required.</p>

<?php echo $form->errorSummary($model); ?>

        <?php 
        echo  '';
			$dataRole = Role::model()->findAll(array('order' => 'roleName'));
		    $listRole = CHtml::listData($dataRole,'id', 'roleName');
                    echo $form->select2Row($model, 'ref_role_id', array(
			   'data' => $listRole,
                            'options' => array(
                                    'placeholder' => 'Pilih Level Otorisasi',
                                ),
                        ), array('class'=>'span5','maxlength'=>245)); 
                    ?>

	<?php echo $form->textFieldRow($model,'username',array('class'=>'span5','maxlength'=>100)); ?>

	<?php echo $form->passwordFieldRow($model,'password',array('class'=>'span5','maxlength'=>100)); ?>

	<?php echo $form->passwordFieldRow($model,'password_repeat',array('class'=>'span5','maxlength'=>100)); ?>

	<?php echo $form->textFieldRow($profil,'namaLengkap',array('class'=>'span5','maxlength'=>50)); ?>

	<?php echo $form->textFieldRow($profil,'email',array('class'=>'span5','maxlength'=>30)); ?>


<div class="form-actions">
	<?php $this->widget('bootstrap.widgets.TbButton', array(
			'buttonType'=>'submit',
			'type'=>'primary',
			'label'=>$model->isNewRecord ? 'Create' : 'Save',
		)); ?>
</div>

<?php $this->endWidget(); ?>
